package com.kun.base.dubbo.consumer;

import com.kun.base.dubbo.consumer.service.ConsumerDemoService;
import com.kun.base.dubbo.service.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Consumer {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-dubbo-consumer.xml");
        context.start();

        ConsumerDemoService consumerDemoService = context.getBean(ConsumerDemoService.class);
        consumerDemoService.getMessage();
    }
}
